<div name="permissionsForm">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"
                ng-click="vm.close()">&times;</button>
        <h5 class="modal-title">
            <span ng-bind="vm.entity"></span> <span i-translate="MEMBERS"></span>
        </h5>
    </div>
    <div class="modal-body">
        <h5><span i-translate="CURRENT_MEMBERS"></span>:</h5>
        <div class="table-responsive">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th i-translate="LAST_NAME"></th>
                    <th i-translate="FIRST_NAME"></th>
                    <th i-translate="LOGIN"></th>
                    <th i-translate="PERMISSION"></th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="member in vm.accessList track by $index">
                    <td ng-bind="member.user.lastName"></td>
                    <td ng-bind="member.user.firstName"></td>
                    <td ng-bind="member.user.login"></td>
                    <td ng-bind="member.permissionView"></td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>

    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="vm.close()">
            <span class="icon icon-stop"></span><span class="m-l5" i-translate="CLOSE"></span>
        </button>
    </div>
</div>
